/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package darknet.application.chat.spec;

import darknet.application.chat.impl.net.message.PrivateMessage;
import darknet.application.chat.impl.net.message.SessionExitMessage;

/**
 *
 * @author yoyo
 */
public interface SessionObserver {

    /**
     * A new private message is receive.
     *
     * @param event The event to broadcast.
     */
    void newPrivateMessage(PrivateMessage event);

    void newExitSessionMessage(SessionExitMessage message);
}
